.container {
  min-height: 100%;
  background: var(--bg-body);
}
.meraager {
  width: 1140px;
  margin-right: auto;
  margin-left: auto;

  flex-direction: row;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.meraagerLeft {
  flex: 1;
  width: calc(100% - 20rem - 1rem);
  padding-top: 10px;
  padding-bottom: 30px;
  > div:nth-child(1) {
    padding: 10px;
    background: var(--bg-second);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    > div {
      > img {
        display: inline-block;
        width: 100%;
        height: auto;
        border-radius: var(--border-radius);
      }
    }
  }
}
.meraagerRight {
  width: 200px;
  margin-left: 15px;
  padding-top: 10px;
  padding-bottom: 30px;
}
.meraagerLeftH {
  margin: 0.67em 0 0;
  color: inherit;
  font-weight: 700;
  font-size: 25px;
  line-height: 1rem;
  line-height: 1.5;
  text-align: center;
}
.meraagerLeftP {
  margin-bottom: 1.2em;
  color: inherit;
  font-style: italic;
  text-align: center;
}
.sticky {
  position: sticky;
  top: 1rem;
  margin-bottom: 10px;
  > div:nth-child(1) {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    background-color: var(--bg-second);
    box-shadow: var(--box-shadow);
    line-height: 1.29;
    display: flex;
    flex-direction: column;
  }
}
.Yuan {
  width: 5px;
  height: 5px;
  display: block;
  background-color: black;
  border-radius: 50%;
}
.stickyTuijianList {
  position: relative;
  transition: opacity 0.3s;
  > ul {
    padding: 0 10px 10px;
    cursor: pointer;
    > p {
      display: flex;
      flex-wrap: nowrap;
      align-items: stretch;
      padding-top: 10px;
      color: var(--second-text-color);
    }
    > p:hover {
      display: flex;
      flex-wrap: nowrap;
      align-items: stretch;
      padding-top: 10px;
      color: var(--second-text-color);
      color: #f40a12;
    }
  }
}
.stickyTopH {
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--main-text-color);
  font-weight: bold;
  > span {
    margin-left: 10px;
  }
}
.tabNav {
  background-color: var(--bg-body);
  > header {
    color: var(--main-text-color);
    font-weight: 600;
    line-height: 22px;
    margin-bottom: 12px;
  }
  > div {
    display: flex;
    flex-direction: column;
    > div {
      cursor: pointer;
      --dot-left: 0px;
      --dot-width: 6px;
      margin-top: 10px;
      > li {
        list-style: disc;
      }
      > li.active {
        color: red !important;
      }
      > li:hover {
        color: red;
      }
    }
  }
}
.copy {
  position: absolute;
  top: 9px;
  right: 10px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  color: hsla(0, 0%, 54.9%, 0.8);
  transition: color 0.1s;
  border: none;
  background: transparent;
}
.markdown {
  padding: 0;
  margin: 0;
  color: var(--main-text-color);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 2px;
  font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light,
    PingFangTC-light;

  i,
  cite,
  em,
  var,
  address,
  dfn {
    font-style: italic;
  }

  strong {
    font-weight: bold;
  }

  p {
    margin: 10px 0;
    color: inherit;
    font-size: 14px;
    letter-spacing: 2px;
    word-spacing: 2px;
  }

  > h1:first-of-type,
  > div > div:first-of-type h1 {
    margin-top: 14px;
  }

  del {
    color: #999999;
  }

  hr {
    border-top: 1px solid var(--border-color);
    margin: 16px 0;
  }

  a {
    color: #4b96e6;
    text-decoration: underline;
    word-break: break-all;
  }

  a:hover {
    color: #1f70de;
  }

  .task-list-item {
    list-style: none;
    min-height: 22px;
    padding-left: 24px;
    border: 0;
    margin-left: -24px;

    > input {
      &::before {
        content: '';
        position: relative;
        top: 0;
        left: 0;
        display: block;
        width: 16px;
        height: 16px;
        border: 1px solid #d9d9d9;
        border-radius: 2px;
        background-color: #fff;
        transition: all 0.3s;
        border-collapse: separate;
      }

      &:checked::before {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
      }

      &::after {
        content: ' ';
        position: absolute;
        left: 6.571429px;
        top: 6.142857px;
        display: table;
        width: 5.71428571px;
        height: 9.14285714px;
        border: 2px solid #fff;
        border-top: 0;
        border-left: 0;
        transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
        transform: rotate(45deg) scale(0);
        opacity: 0;
      }

      &:checked::after {
        opacity: 1;
        transform: rotate(45deg) scale(1);
      }
    }
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    padding: 0;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    color: var(--main-text-color);
    font-weight: bold;
  }

  h1 {
    display: inline-block;
    font-weight: bold;
    font-size: 25px;
  }

  h2 {
    display: inline-block;
    width: 100%;
    border-bottom: 0;
    margin: 20px 10px 0 0 !important;
    font-weight: bold;
    font-size: 18px;
    text-align: left;
  }

  h3 {
    border-bottom: 2px solid var(--border-color);
    font-weight: bold;
    font-size: 16px;
    text-align: left;
  }

  ul,
  menu,
  ol,
  dir {
    display: block;
    list-style-type: none;
    padding-left: 24px;
    margin: 6px 0 10px;
  }

  ul {
    list-style-type: disc;

    ul {
      list-style-type: square;
    }
  }

  li {
    min-height: 22px;
  }

  ol {
    list-style-type: none;
    counter-reset: li;
  }

  ol > li {
    counter-increment: li;
  }

  ol > li::before {
    width: 24px;
    margin-left: -28px;
    direction: rtl;
    text-align: right;
    content: '.' counter(li);
  }

  ul ul,
  ul ol,
  ol ol,
  ol ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  ul li,
  ol li {
    position: relative;
  }

  ul p,
  ol p {
    margin: 0;
  }

  ul li.task-list-item::before,
  ol li.task-list-item::before,
  pre ul li::before {
    content: '';
  }

  code {
    display: inline;
    padding: 2px 4px;
    border-radius: 4px;
    margin: 0 2px;
    color: var(--main-text-color);
    background-color: rgba(27, 31, 35, 0.05);
    font-size: 14px;
    font-family: Operator Mono, Source Code Pro, Menlo, Consolas, Monaco,
      monospace;
    word-wrap: break-word;
    word-break: break-all;
  }

  pre {
    position: relative;
    max-height: 400px;
    padding-top: 30px;
    border-radius: 5px;
    margin: 10px 0;
    background-color: var(--bg-code);
    font-size: 1em;

    &::before {
      position: absolute;
      top: 0;
      display: block;
      width: 100%;
      height: 30px;
      background-image: url(https://wipi.oss-cn-shanghai.aliyuncs.com/2020-07-12/97e4eed2-a992-4976-acf0-ccb6fb34d308.png);
      background-position: 10px 10px;
      background-size: 40px;
      background-repeat: no-repeat;
      background-color: var(--bg-code);
      content: '';
    }

    code {
      display: block;
      max-height: 370px;
      padding: 12px 10px;
      padding-top: 9px;
      border-radius: 0;
      background-color: var(--bg-code);
      overflow: auto;
      overscroll-behavior: contain;
      font-size: 12px;
      margin: 0;

      @at-root pre {
        overflow: hidden;
      }
    }
  }

  blockquote {
    padding: 1px 23px;
    border: 1px solid var(--border-color);
    border-left: 4px solid #cbcbcb;
    border-left: 4px solid var(--disable-text-color);
    margin: 22px 0;
    color: #666666;
    background-color: var(--bg-second);
  }

  strong {
    font-weight: bold;
  }

  strong::before {
    content: '「';
  }

  strong::after {
    content: '」';
  }

  p em {
    font-weight: normal;
  }

  /* 斜体 */
  em {
    color: var(--main-text-color);
    font-style: normal;
  }

  /* 加粗斜体 */
  em strong {
    color: var(--main-text-color);
  }

  img {
    display: block;
    display: block;
    width: 100%;
    border-radius: var(--border-radius);
    margin: 20px auto;
    object-fit: contain;
  }

  table {
    border-collapse: collapse;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    margin: 12px 0 14px;
  }

  table th,
  table td {
    height: 32px;
    padding: 5px 14px 5px 12px;
    border: 1px solid var(--border-color);
  }

  table th {
    padding-top: 6px;
    color: var(--main-text-color);
    background-color: var(--bg-body);
    font-weight: 300;
  }

  table tr th,
  table tr td {
    color: var(--main-text-color);
    font-size: 14px;
  }

  code.language-ts:before,
  code.language-js:before,
  code.language-go:before,
  code.language-css:before,
  code.language-sql:before,
  code.language-php:before,
  code.language-html:before,
  code.language-json:before,
  code.language-bash:before,
  code.language-less:before,
  code.language-scss:before,
  code.language-nginx:before,
  code.language-javascript:before,
  code.language-typescript:before,
  code.language-shell:before,
  code.language-stylus:before,
  code.language-python:before,
  code.language-nginx:before,
  code.language-json:before {
    position: absolute;
    top: 9px;
    right: 50px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    color: hsla(0, 0%, 54.9%, 0.8);
    transition: color 0.1s;
  }
  code.language-js:before {
    content: 'js';
  }
  code.language-ts:before {
    content: 'ts';
  }
  code.language-go:before {
    content: 'go';
  }
  code.language-css:before {
    content: 'css';
  }
  code.language-sql:before {
    content: 'sql';
  }
  code.language-php:before {
    content: 'php';
  }
  code.language-bash:before {
    content: 'bash';
  }
  code.language-less:before {
    content: 'less';
  }
  code.language-scss:before {
    content: 'scss';
  }
  code.language-shell:before {
    content: 'shell';
  }
  code.language-nginx:before {
    content: 'nginx';
  }
  code.language-stylus:before {
    content: 'stylus';
  }
  code.language-python:before {
    content: 'python';
  }
  code.language-html:before {
    content: 'html';
  }
  code.language-javascript:before {
    content: 'js';
  }
  code.language-typescript:before {
    content: 'ts';
  }
  code.language-bash:before {
    content: 'shell';
  }
  code.language-css:before {
    content: 'css';
  }
  code.language-json:before {
    content: 'json';
  }
}
// }

// :global {
body.dark {
  p,
  li {
    code {
      background-color: var(--bg-code);
    }
  }
}
// }
